/*
 * 攀枝花学院二手图书拍卖平台
 * Design by 王伟学
 * Version :1.0
 */
package com.auction.system.domain.dto.auction;

import java.io.Serializable;

import com.auction.system.domain.pojo.auction.SysNewsPojo;
import com.auction.system.enums.EnumNewsType;
import com.auction.system.utils.StringUtil;
import lombok.Data;
/**
 * sys_news - 系统新闻表 实体类
 * 
 * @author 软件工程3班-王伟学
 */
@Data
public class SysNews extends SysNewsPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public SysNews(){

    }

    public SysNews(Long id){
        this.setId(id);
    }

    private String newsTypeDesc;

    public String getNewsTypeDesc(){
        if(StringUtil.isEmpty(getNewsType())){
            return "";
        }
        return EnumNewsType.getName(getNewsType());
    }
}
